package com.yourname.lab4.v2;

public class AdditionExpression extends AbstractExpression {

    public AdditionExpression(int left, int right) {
        super(left, right);
    }

    @Override
    public int calculate() {
        return left + right;
    }

    @Override
    public String toString() {
        return left + " + " + right + " = ";
    }
}
